﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
/* This Model is responsible for keeping track of each wall post and its event!
 * Each class contains create and modified times for security reasons
 */
namespace Fish.Models
{
    public class WallPosts
    {
        public int ID { get; set; }

        [Required]
        public string Text { get; set; }

        [DataType(DataType.DateTime)]
        [ScaffoldColumn(false)]
        public DateTime Created { get; set; }

        [DataType(DataType.DateTime)]
        [ScaffoldColumn(false)]
        public DateTime Modified { get; set; }

        public virtual Users User { get; set; }
        public virtual Events Event { get; set; }

        public WallPosts()
        {
            this.Created = DateTime.Now;
            this.Modified = DateTime.Now;
        }
    }
}